import java.util.Scanner;
//在不使用第三个变量的情况下交换两个int类型变量的值
public class Test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        b = a + b;
        a = b - a;
        b = b - a;
        System.out.println(a+" "+b);
    }
}

